package cn.alex.sso.project.controller;

import cn.alex.sso.framework.core.Result;
import cn.alex.sso.project.entity.monitor.Server;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务监控
 *
 * @author Alex
 * @date 2024/10/18 上午10:52
 */
@RestController
@RequestMapping("/system/monitor/server")
public class ServerController {
    @GetMapping()
    public Result getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return Result.ok(server);
    }
}
